package marvin.webapp.audio.action;

import java.net.URISyntaxException;

import javax.annotation.PostConstruct;
import javax.faces.application.FacesMessage;
import javax.faces.bean.ManagedBean;
import javax.faces.bean.SessionScoped;

@ManagedBean
@SessionScoped
public class MenuAction extends AbstractAudioWebAction {

	private static final long serialVersionUID = 7015153638601208133L;
	
	@PostConstruct
	public void load() {
	}
	
	public void reloadTree(){
		try {
			treeBean.reloadTree();
		} catch (URISyntaxException e) {
			displayMessage(FacesMessage.SEVERITY_ERROR, "Tree reloading", e.getMessage());
		}
	}
}
